/*
 * All right reserved@Raygo 2022~2030
 */

package com.raygo.runner.core.command;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.raygo.runner.core.annotation.CmdDefine;
import com.raygo.runner.core.entity.FlowContext;

/**
 * 样例命令
 *
 * @author Raygo
 * @since 2022年8月6日
 */
@CmdDefine(name = "样例命令")
public class DemoCommand implements Command {
    @Override
    public CmdResult runCommand(Map<String, Object> input, FlowContext context) throws CmdException {
        return new CmdResult();
    }

    @Override
    public List<CmdParam<?>> getInputParam() {
        List<CmdParam<?>> inputCmdParams = new ArrayList<>();
        inputCmdParams.add(new CmdParam<String>("id", "1"));
        inputCmdParams.add(new CmdParam<Integer>("index", 1));
        inputCmdParams.add(new CmdParam<byte[]>("bytes", null));
        return inputCmdParams;
    }

    @Override
    public List<CmdParam<?>> getOutputParam() {
        List<CmdParam<?>> outputCmdParams = new ArrayList<>();
        return outputCmdParams;
    }
}
